import assert from "node:assert";
import path from "node:path";
import resolve, { ResolverFactory } from "oxc-resolver";

// `resolve`
assert.ok(
  resolve.sync(process.cwd(), "./index.js").path,
  path.join(process.cwd(), "index.js"),
);

// `ResolverFactory`
const resolver = new ResolverFactory();
assert.ok(
  resolver.sync(process.cwd(), "./index.js").path,
  path.join(process.cwd(), "index.js"),
);
